package com.lg.rpc.common.protocol.bean;

import lombok.Data;

/**
 * @author by Mr. Li 2020/5/21 22:55
 */
@Data
public class RpcResponse {
    private String requestId;
    private Exception exception;
    private Object result;
    private String error;

    public boolean isException() {
        return exception != null;
    }

    public boolean hasException() {
        return exception != null;
    }

}
